<%@page import="com.hospital.util.DateUtil"%>
<%@page import="com.hospital.util.DbUtil"%>
<%@page import="java.util.Map"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>医院管理系统</title>
<link href="images/main.css" rel="stylesheet" type="text/css" />
<link  href="../css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/trim.js"></script>
<script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
</head>
<body onload="init();">
	<jsp:include page="right_top.jsp"></jsp:include>
	<!-- TOP START -->
	<div id="right_font">
		<img src="images/main_14.gif" /> 您现在所在的位置：首页 → 票务信息管理 → <span
			class="bfont">票务信息打印</span>
	</div>
	<!-- TOP END -->
	<hr >
	<form action="" method="post" name="form" id="form">
	<% 
		int id = Integer.parseInt(request.getParameter("id"));
		String sql = "select * from t_inhospital_record where id = " + id;
		Map<String, Object> map  = (Map<String, Object>)DbUtil.find(sql).get(0);
	%>
		<table style="margin-top: 30px; margin-left:50px;" cellpadding="0" cellspacing="0" border="0" width="40%">
			<tr height="30px;">
				<td colspan="2" align="center" style="font-size:30px;"> 
					医院住院专用收据 
				</td>
			</tr>
		</table>
		<table style="margin-top: 30px; margin-left:50px;" cellpadding="0" cellspacing="0" border="1" width="40%">
			<tr height="30px;" align="center">
				<td><font color="#FF0000"></font>挂号单号：</td>
				<td><%=map.get("orderid") %></td>
			</tr>
			<tr height="30px;" align="center">
				<td><font color="#FF0000"></font>姓名：</td>
				<td><%=map.get("account") %></td>
			</tr>
			<tr height="30px;" align="center">
				<td><font color="#FF0000"></font>病情：</td>
				<td><%=map.get("cases") %></td>
			</tr>
			<tr height="30px;" align="center">
				<td><font color="#FF0000"></font>药名：</td>
				<td><%=map.get("drug") %></td>
			</tr>
			<tr height="30px;" align="center">
				<td><font color="#FF0000"></font>价格：</td>
				<td><%=map.get("drugmoney") %></td>
			</tr>
			<tr height="30px;" align="center">
				<td><font color="#FF0000"></font>检查项目：</td>
				<td><%=map.get("item") %></td>
			</tr>
			<tr height="30px;" align="center">
				<td><font color="#FF0000"></font>检查费用：</td>
				<td><%=map.get("itemmoney") %></td>
			</tr>
			<tr height="30px;" align="center">
				<td><font color="#FF0000"></font>费用总计：</td>
				<td><%=Double.parseDouble(map.get("drugmoney") + "") + Double.parseDouble(map.get("itemmoney") + "") %></td>
			</tr>
			<tr height="30px;" align="center">
				<td><font color="#FF0000"></font>打票日期：</td>
				<td><%=DateUtil.getDateTime() %></td>
			</tr>
		</table>	
		<table style="margin-top: 30px; margin-left:50px;" cellpadding="0" cellspacing="0" border="0" width="40%">
			<tr height="30px;">
				<td colspan="2" align="center">
					<input type="button" value="打印" onclick="window.print();"/>&nbsp;&nbsp;
				</td>
			</tr>
		</table>
	</form>
</body>
</html>